#include <stdio.h>

int main(int argc, char const *argv[])
{
    char buf[1024];
    FILE *file = fopen("/etc/passwd", "r");

    fgets(buf, 1024, file);

    printf("The first line of the file is: %s", buf);

    fclose(file);
    return 0;
}
